﻿<Window x:Class="CRUD_baseEF.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:CRUD_baseEF"
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="800">

    <Grid>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="200"/>
        </Grid.ColumnDefinitions>

        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="50"/>
        </Grid.RowDefinitions>

        <Button Name="btn_addEdit" 
                Click="btn_addEdit_Click" 
                Content="Добавить/Изменить"
                HorizontalAlignment="Left"/>
        
        <Button Name="btn_delete" 
                Click="btn_delete_Click"  
                Content="Удалить" 
                HorizontalAlignment="Center"/>
        
        <Button Name="btn_discard" 
                Click="btn_discard_Click" 
                Content="Сброс" 
                HorizontalAlignment="Right"/>

        <ListBox Name="lbox_machines" 
                 d:ItemsSource="{d:SampleData ItemCount=5}" 
                 SelectionChanged="lbox_machines_SelectionChanged"/>

        <TextBlock Grid.Column="1" 
                   HorizontalAlignment="Left" 
                   Margin="37,114,0,0" 
                   TextWrapping="Wrap" 
                   Text="..." 
                   VerticalAlignment="Top"/>
        <TextBox Name="tbox_name" 
                 Grid.Column="1" 
                 HorizontalAlignment="Left" 
                 Margin="37,135,0,0" 
                 TextWrapping="Wrap"
                 VerticalAlignment="Top" 
                 Width="120"/>

        <TextBlock Grid.Column="1" 
                   HorizontalAlignment="Left" 
                   Margin="41,43,0,0" 
                   TextWrapping="Wrap" 
                   VerticalAlignment="Top"
                   Text="..."/>
        
        <ComboBox Name="cbox_type" 
                  Grid.Column="1" 
                  HorizontalAlignment="Center" 
                  Margin="0,64,0,0" 
                  VerticalAlignment="Top" 
                  Width="120"/>
        
        <TextBlock Grid.Column="1" 
                   HorizontalAlignment="Left" 
                   Margin="42,201,0,0" 
                   TextWrapping="Wrap" 
                   Text="..." 
                   VerticalAlignment="Top"/>
        
        <DatePicker Name="dpic_date" 
                    Grid.Column="1" 
                    HorizontalAlignment="Left" 
                    Margin="41,217,0,0" 
                    VerticalAlignment="Top"/>




    </Grid>
</Window>
